﻿namespace ExpressionBodiedMembers
{
    public class Student
    {
        // private field
        private string _studentName;

        // public method
        public int GetStudentNameLength() => _studentName.Length;

        // public constructors
        public Student() => _studentName = "Jack";

        // public properties
        public string StudentName
        {
            set => _studentName = value;
            get => _studentName;
        }
    }
}